package com.huarui.saleInvoiceItem.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.saleInvoiceItem.dao.ISaleInvoiceItemDao;

public class SaleInvoiceItemDaoImpl extends BaseDaoImpl implements ISaleInvoiceItemDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<Map> getListByCondition(Map map) {
		return this.getSqlMapClientTemplate().queryForList(namespace+".getListByCondition",map);
	}
	@SuppressWarnings("unchecked")
	public Integer getCountByCondition(Map map){
		return (Integer) this.getSqlMapClientTemplate().queryForObject(namespace+".getCountByCondition", map);
	}
	@SuppressWarnings("unchecked")
	@Override
	public void deleteByCondition(Map map) {
		this.getSqlMapClientTemplate().delete(namespace+".deleteByCondition",map);
	}

}
